package com.example.huanhang.changzhouapp.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author : lei
 * @desc :用户表
 * @date : 2018/9/3 0003  上午 11:02.
 * 个人博客站: http://www.bestlei.top
 */

public class User implements Parcelable {
    private String id;
    private String name;
    private String pwd;
    private String gzName;
    private String xb;
    private String bm;
    private String state;
    private String permissions;

    public String getPermissions() {
        return permissions;
    }

    public void setPermissions(String permissions) {
        this.permissions = permissions;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getGzName() {
        return gzName;
    }

    public void setGzName(String gzName) {
        this.gzName = gzName;
    }

    public String getXb() {
        return xb;
    }

    public void setXb(String xb) {
        this.xb = xb;
    }

    public String getBm() {
        return bm;
    }

    public void setBm(String bm) {
        this.bm = bm;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public User() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.pwd);
        dest.writeString(this.gzName);
        dest.writeString(this.xb);
        dest.writeString(this.bm);
        dest.writeString(this.state);
        dest.writeString(this.permissions);
    }

    protected User(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.pwd = in.readString();
        this.gzName = in.readString();
        this.xb = in.readString();
        this.bm = in.readString();
        this.state = in.readString();
        this.permissions = in.readString();
    }

    public static final Creator<User> CREATOR = new Creator<User>() {
        @Override
        public User createFromParcel(Parcel source) {
            return new User(source);
        }

        @Override
        public User[] newArray(int size) {
            return new User[size];
        }
    };
}
